<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>

<h1>
	<fmt:message key="role.view.title" />
</h1>
<a href="new"><fmt:message key="role.view.addbutton" />
</a>
<br />
<br />

<table collspadding="0px" width="800px">
	<tr>
		<th width="30px"><fmt:message key="role.form.id" />
		</th>
		<th width="100px"><fmt:message key="role.form.name" />
		</th>
		<th width="100px"><fmt:message key="role.form.createdon" />
		</th>
		<th width="20px">&nbsp;</th>
	</tr>
	<c:url var="editRoleUrl" value="/admin/role/" />
	<c:url var="deleteRoleUrl" value="/admin/role/delete/" />
	<c:forEach items="${rolelist}" var="role">
		<tr>
			<td><c:out value="${role.id}" />
			</td>
			<td><a href="${editRoleUrl}${role.id}"><c:out
						value="${role.name}" />
			</a>
			</td>
			<td><c:out value="${role.createdOn}" />
			</td>
			<td><a href="${deleteRoleUrl}${role.id}"><fmt:message
						key="role.view.deletebutton" />
			</a>
			</td>
		</tr>
	</c:forEach>
</table>
